package com.lvlv.eduservice.controller;

import com.lvlv.unify_utils.Result;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/eduservice/user")
public class EduLoginController {

    //login
    @PostMapping("login")
    public Result login() {
        return Result.ok().data("token","admin");
    }

    //info
    @GetMapping("info")
    public Result info() {
        return Result.ok().data("roles","[admin]").data("name","admin").data("avatar","https://img.wxcha.com/m00/37/ab/c141e81f24ac345e60b67fb9ac26e019.jpg?down");
    }

}
